package com.example.milktea.service;

import com.example.milktea.dao.UserDao;
import com.example.milktea.entity.Product;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;
public interface ProductService {
   List<Map<String, Object>> getProAll();
   Product getProductById(Integer id);

   void modifyPrice(String product_id, Integer newPrice);
   //void onoffSale(String product_id);
   void updateProfit(String product_id);

   void addProduct(Product product);
   void onSale(String product_id);
   void offSale(String product_id);
}
